# Contributors: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=libfolia
pkgver=2.17
pkgrel=1
pkgdesc="C++ library for FoLiA (Format for Linguistic Annotation)"
options="!check"
arch="all"
url="https://github.com/LanguageMachines/libfolia"
license="GPL-3.0-only"
makedepends="libtool libxml2-dev ticcutils-dev icu-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/libfolia/releases/download/v$pkgver/libfolia-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
11b8f40ad03191dd1e90d2b7997c2a36fc33d4a6690f817fee8b91c863b42b09e9897a5bfba87f5865f0c6d16f7a3e72bd3af50c6ff74dbf6b8b9429e69993df  libfolia-2.17.tar.gz
"
